# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0
PortGroup           python 1.0

name                py-stfio
version             0.13.8
categories          python science
platforms           darwin
license             GPL-2
maintainers         gmx.de:christsc
description         Electrophysiology file support for Python
long_description    A Python module to read common electrophysiology file formats.
homepage            http://www.stimfit.org
master_sites        googlecode:stimfit
distname            stimfit-${version}

checksums           rmd160  RMD160 \
                    sha256  SHA256

python.versions     26 27 33 34

if { ${name} ne ${subport} } {
    depends_build   port:swig-python

    depends_lib     port:boost \
                    port:hdf5-18 \
                    port:py${python.version}-numpy

    configure.args  --disable-dependency-tracking \
                    --enable-module

    configure.python \
                    ${python.bin}

    use_configure   yes
    build.cmd       make
    build.target    
    destroot.cmd    make
    destroot.destdir \
                    DESTDIR=${destroot}

    post-destroot {
        set docdir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${docdir}
        xinstall -m 644 ${worksrcpath}/debian/copyright \
            ${worksrcpath}/COPYING ${docdir}
    }
}
